<!-- File: /app/View/Weivos/index.ctp -->

<h1>Weibo</h1>
<table>
<tr>


<th>User</th>
<th>Title</th>
<th>Created</th>
</tr>
<!-- Here is where we loop through our $posts array, printing out post info -->
<?php foreach ($posts as $post): ?>
<tr>
<td><?php echo $this->Html->link($post['Weibo']['user_id'],
	array('controller' => 'users', 'action' => 'view', $post['Weibo']['user_id'])); ?></td>
<td>
<?php echo $this->Html->link($post['Weibo']['title'],
	array('controller' => 'weibos', 'action' => 'weiboView', $post['Weibo']['id'])); ?>
</td>
	<td><?php echo $post['Weibo']['date']; ?></td>
</tr>

<tr>
<td colspan="2">
<p>Content:</p>
<p><?php echo $post['Weibo']['content'] ?></p>
</td>
</tr>
<?php endforeach; ?>
<?php unset($post); ?>
</table>
